package com.jn.moduledemo.cake;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.jn.moduledemo.common.base.BaseFragment;
import com.jn.moduledemo.personal.R;
@Route(path = "/cake/HomeFragment")
public class HomeFragment extends BaseFragment implements View.OnClickListener {
   @Override
   protected int getLayoutId() {
      return R.layout.fragment_home;
   }

   @Override
   protected void init() {

   }

   @Override
   protected void onFragmentChanged() {

   }
   @Override
   public View onCreateView(LayoutInflater inflater, ViewGroup container,
                            Bundle savedInstanceState) {
      View view= inflater.inflate(R.layout.fragment_home, container, false);
      Button button = view.findViewById(R.id.begin_button);
      button.setOnClickListener(new View.OnClickListener() {
         @Override
         public void onClick(View v) {
            Intent intent = new Intent(getActivity(), PinzhongActivity.class);
            startActivity(intent);
         }
      });
      return view;
   }
   @Override
   public void onClick(View v) {

   }
}
